package cn.tedu.mybatis.mapper;


import cn.tedu.mybatis.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

    int insert(Admin admin);

    int deleteById(Long id);

    int updatePasswordById(@Param("id") Long id,
                           @Param("password") String password);

    int count();

    Admin getById(Long id);

    List<Admin> list();



}
